<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>update</title>
    <script src="../js/jquery-1.8.3.min.js"></script>
    <script src="../bootstrap/js/bootstrap.js"></script>
    <link rel="stylesheet" href="../bootstrap/css/bootstrap.css">
</head>
<body>
    <foreach name="res" item="v">    
    <form action="{:U('Home/Index/doUpdate')}" method="POST">
        <input type="hidden" name="id" value="{$v.id}">
         姓名：<input type="text" name="name" value="{$v.name}"><br>
         班级：
         <select name="class">
             <option value="1">1班</option>
             <option value="2">2班</option>
             <option value="3">3班</option>
         </select><br>
         性别：
         <select name="sex">
             <option value="男">男</option>
             <option value="女">女</option>
         </select><br>
         年龄：<input type="text" name="age" value="{$v.age}"><br>
         <input type="submit" value="提交">
    </form>
    </foreach> 

    
</body>
</html>